import request from '@/utils/request'

// 查询出库物料明细列表
export function listORDERDETAIL(query) {
  return request({
    url: '/system/ORDERDETAIL/list',
    method: 'get',
    params: query
  })
}

// 查询出库物料明细详细
export function getORDERDETAIL(orderId) {
  return request({
    url: '/system/ORDERDETAIL/' + orderId,
    method: 'get'
  })
}

// 新增出库物料明细

export function addORDERDETAIL(data) {
  return request({
    url: '/system/ORDERDETAIL',
    method: 'post',
    data: data
  })
}

// 修改出库物料明细

export function updateORDERDETAIL(data) {
  return request({
    url: '/system/ORDERDETAIL',
    method: 'put',
    data: data
  })
}

// 删除出库物料明细

export function delORDERDETAIL(orderId) {
  return request({
    url: '/system/ORDERDETAIL/' + orderId,
    method: 'delete'
  })
}
//创建出库明细
export function creates(data) {
  return request({
    url: '/system/ORDERDETAIL/create',
    method: 'post',
    data: data
  })
}
export function updateCkSts(data) {
  return request({
    url: '/system/ORDERDETAIL/updateCkSts',
    method: 'post',
    data: data
  })
}

// 查询出库物料明细列表
export function listORDERDETAILs(query) {
  return request({
    url: '/system/ORDERDETAIL/lists',
    method: 'get',
    params: query
  })
}
